package com.yufubao.model.dto.management.sys;

import com.yufubao.model.pojo.management.authorization.MenuEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2022/12/7 13:57
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UpdateMenuDto extends MenuEntity {
    //菜单名称
    @NotBlank(message = "菜单名称不能为空")
    private String menuName;
    //父菜单ID
    @NotNull(message = "父菜单ID不能为空")
    private Long parentId;
    //显示顺序
    @NotNull(message = "显示顺序不能为空")
    private Integer orderNum;
    //路由地址
    @NotBlank(message = "路由地址不能为空")
    private String path;

    //菜单类型（M目录 C菜单 F按钮）
    @NotBlank(message = "菜单类型不能为空")
    private String menuType;
}
